home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Sound / LAME / WarpOS / src / dshow / PropPage.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-12-04  |  2.0 KB  |  60 lines

  1. /*
  2.  *    MPEG Audio Encoder for DirectShow
  3.  *
  4.  *    Copyright (c) 2000 Marie Orlova, Peter Gubanov, Elecard Ltd.
  5.  *
  6.  * This library is free software; you can redistribute it and/or
  7.  * modify it under the terms of the GNU Library General Public
  8.  * License as published by the Free Software Foundation; either
  9.  * version 2 of the License, or (at your option) any later version.
  10.  *
  11.  * This library is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.     See the GNU
  14.  * Library General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU Library General Public
  17.  * License along with this library; if not, write to the
  18.  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  19.  * Boston, MA 02111-1307, USA.
  20.  */
  21.  
  22. class CMpegAudEncPropertyPage : public CBasePropertyPage 
  23. {
  24.  
  25. public:
  26.     static CUnknown *CreateInstance( LPUNKNOWN punk, HRESULT *phr );
  27.     CMpegAudEncPropertyPage( LPUNKNOWN punk, HRESULT *phr );
  28.  
  29.     HRESULT OnConnect(IUnknown *pUnknown);
  30.     HRESULT OnDisconnect();
  31.     HRESULT OnActivate();
  32.     HRESULT OnDeactivate();
  33.     HRESULT OnApplyChanges();
  34.     BOOL OnReceiveMessage(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam);
  35.  
  36. private:
  37.     void    InitPropertiesDialog(HWND hwndParent);
  38.     void    EnableControls(HWND hwndParent, bool bEnable);
  39.     void    SetDirty(void);
  40.  
  41.     DWORD    m_dwPES;
  42.     DWORD    m_dwBitrate;                //constant bit rate
  43.     DWORD    m_dwVariable;                //flag - whether the variable bit rate set 
  44.     DWORD    m_dwMin;                    //specify a minimum allowed bitrate
  45.     DWORD    m_dwMax;                    //specify a maximum allowed bitrate
  46.     DWORD    m_dwQuality;                //encoding quality
  47.     DWORD   m_dwVBRq;                    //VBR quality setting (0=highest quality, 9=lowest) 
  48.     DWORD    m_dwSampleRate;
  49.     DWORD    m_dwChannelMode;
  50.     DWORD    m_dwCRC;
  51.     DWORD    m_dwCopyright;
  52.     DWORD    m_dwOriginal;
  53.  
  54.     HWND    m_hwndQuality;               //Slider window handle
  55.  
  56.     BOOL    m_fWindowInactive;        // TRUE ==> dialog is in the process of being destroyed
  57.  
  58.     IAudioEncoderProperties    *m_pAEProps;
  59. };
  60.